import 'package:fish_redux/fish_redux.dart';
import '../../../app_files.dart';
import '../model/meter_info_model.dart';

class MeterAddViewState implements Cloneable<MeterAddViewState> {
  MeterInfoModel meterInfoModel = MeterInfoModel();
  List<MeterFactoryModel> factoryItems = [];
  String itemID;
  int selectFactory;

  @override
  MeterAddViewState clone() {
    return MeterAddViewState()
      ..meterInfoModel = meterInfoModel
      ..selectFactory = selectFactory
      ..itemID = itemID
      ..factoryItems = factoryItems;
  }
}

MeterAddViewState initState(Map<String, dynamic> args) {
  return MeterAddViewState()..itemID = args['itemID'];
}
